package gormdao

import (
	"github.com/jinzhu/gorm"
	_ "github.com/jinzhu/gorm/dialects/postgres"
)

type GormDao struct {
	DB *gorm.DB
}

func New(connectionString string) (dao *GormDao,err error) {
	dao=&GormDao{}
	dao.DB,err=gorm.Open("postgres",connectionString)
	return
}
